#FROM ubuntu:22.04
#
#ARG DEBIAN_FRONTEND=noninteractive
#
## 更新源、配置基础
#RUN sed -i -r 's#http://(archive|security).ubuntu.com#http://mirrors.aliyun.com#g' /etc/apt/sources.list && \
#    apt update
#
#RUN apt install -y apt-transport-https ca-certificates software-properties-common
#RUN apt install -y make g++ tzdata bash-completion
#
## 配置 bash 补全
#RUN echo ". /etc/bash_completion" >> /root/.bashrc
#
## 配置时区
#ENV TZ=Asia/Shanghai
#
#RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \
#    && echo ${TZ} > /etc/timezone \
#    && dpkg-reconfigure --frontend noninteractive tzdata
#
## 安装其它一些常用工具
#RUN apt install -y wget curl net-tools netcat-traditional git-core vim
FROM registry.xuelangyun.com/sh/sh-dc-solver-scheduler:1.0.0

WORKDIR /app

COPY ./dist/solverscheduler ./solverscheduler

EXPOSE 9000

ENTRYPOINT ["/app/solverscheduler"]